# SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
# SPDX-License-Identifier: Mulan PSL v2
#!/bin/bash

set -e

# 定义打包流程，可以包含编译、制作镜像、push镜像等操作
function main() {

    go build ./cmd/manager
    docker build -t ${DOCKER_IMAGE_NAME} ./ -f Dockerfile
    docker push ${DOCKER_IMAGE_NAME}
}

main
